package com.tduck.cloud.poster.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.tduck.cloud.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * 海报模板对象 rp_poster_template
 *
 * @author tduck-gen
 * @date 2023-02-14 17:22:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "rp_poster_template", autoResultMap = true)
public class PosterTemplateEntity extends BaseEntity<PosterTemplateEntity> {

    /**
     *
     */
    private Long id;

    /**
     * 用户Id 为空表示是公共模板
     */
    private Long userId;


    /**
     * 模板图片
     */
    private String templateImage;
    /**
     * 唯一key
     */
    private String posterKey;

    /**
     * 项目名
     */
    private String name;

    /**
     * 海报配置
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private PosterEntity posterTemplateConfig;

}
